﻿using FluentValidation;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IdentityServer.Infrastructure.Validators
{
    public record LoginByEmailAndPwdRequest(string Email, string Password) { }
    public class LoginByEmailAndPwdRequestValidator : AbstractValidator<LoginByEmailAndPwdRequest>
    {
        public LoginByEmailAndPwdRequestValidator()
        {
            RuleFor(x => x.Email).NotEmpty().NotNull();
            RuleFor(x=>x.Password).NotNull().NotNull();
        }
    }
}
